package cn.sdormitory.exam.dao;

import cn.sdormitory.exam.entity.ClassroomTest;
import cn.sdormitory.exam.vo.AppClassroomTestRecordVo;
import cn.sdormitory.exam.vo.ClassroomTestRecordVo;
import cn.sdormitory.exam.vo.ClassroomTestVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : yy
 * @date: 2024/12/31 11:17
 * @description:
 */
@Mapper
public interface ClassroomTestDao extends BaseMapper<ClassroomTest> {
    List<ClassroomTestVo> getList(@Param("testName") String testName, @Param("courseId") Integer courseId,
                                  @Param("classId") Integer classId);

    List<ClassroomTestRecordVo> getClassroomTestRecord(@Param("classId") Integer classId, @Param("testId") Integer testId);

    //app
    List<AppClassroomTestRecordVo> getAppClassRoomTestRecord(Integer studentId);

    List<ClassroomTestVo> getTestCount(@Param("classIds") List<Long> classIds);
}
